 {include file="public/header" /}
 <body class="gray-bg">
 <div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead" /}
        <div class="ibox-title">
          <h5>
              女神：{$nvshen.nickname}消息列表

          </h5>  
        </div>
        <div class="ibox-content">
        {include file="public/topsection"}
        
            <div class="row row-lg">
                
                <div class="col-sm-12">
                    <div class="fixed-table-toolbar">
                        <div class="pull-right search">
                            <a class="btn btn-w-m btn-link" href="{:url('usertalk/index')}">返回</a>
                        </div> 
                    </div>
                    <div class="example">
                        <table data-toggle="table" data-striped="false">
                            <thead>
                                <tr>
                                    <th>用户id</th>
                                    <th>用户昵称</th>
                                    <th>消息</th>
                                    <th>管理</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="data" id="v"}
                                <tr id="id{$v.id}" class="class">
                                    <td>{$v.uid}</td>
                                    <td><img src="{:checkpath(_imgUrl('1').$v.img)}" alt="" width="100px" height="100px;">{$v.nickname}</td>
                                    <td>
                                      
                                     {if condition="$v.wei>0"}有<span style="color: red">{$v.wei}</span>条未读消息{else /}{:cut_str($v.content,51)}{/if}   
                                    </td>
                                    <td>
                                        <div class="btn-group">
                                            <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a onclick="add('{:url('huifu',['touid'=>$v['touid'],'uid'=>$v['uid'],'url'=>-1])}')">回复</a>
                                                </li>
                                               <!--  <li class="divider"></li>
                                                <li><a onclick="swal_del({$v.id},'{:url('del')}')">删除</a>
                                                </li> -->
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>  
            </div>
        </div>
    </div>
</div>
{load href="__PLUGINS__layui/layui.js"}
<script>
    function watch(id) {
        layui.use('layer', function(){
          var layer = layui.layer;
          layer.open({
              title :'查看大图',
              area: ['100%', '100%'],
              type: 2, 
              content: id
            }); 

         
        });
    }
</script>
<script type="text/javascript">
    // setInterval(function() {
    // window.location.reload();
    // },100000)
    


function add(url){
        layer.open({
          type: 2,
          title: '提示',
          shadeClose: false,
          shade: 0.2,
          area: ['90%', '90%'],
          skin:'shangchuantup',
          shift:-1,
          content: [url,'no'],
          scrollbar: false,
          moveType: 1,
          moveOut: true
        }); 
}
</script>
{include file="public/footer" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}